path bar: Request enough natural width to fit all buttons
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2014 22:55:04 +0000 (17:55 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2014 22:58:44 +0000 (17:58 -0500)
Otherwise, we are at the mercy of the container giving us
more space than we request, which does not always work.

gtk/gtkpathbar.c

index ec3364b724652902548feba987485ccbd998ac0c..3a1c821623e6ad421e5d7a5995c2d6fb9828ac2e 100644 (file)
@@ -371,7 +371,7 @@ gtk_path_bar_get_preferred_width (GtkWidget *widget,
         }
 
       *minimum = MAX (*minimum, child_min);
-      *natural = MAX (*natural, child_nat);
+      *natural = *natural + child_nat;
     }
 
   /* Add space for slider, if we have more than one path */